
#include "..\soft\program\incl.h"
#include "..\soft\program\extn_variable.h"


void delay1ms(uint32 time_delay)
{
	uint16 i = 0;
	uint32 j = 0;
	for(j = 0; j < time_delay; j++)
	 for(i = 0; i < 50; i++);
}


Jbintobcd(uint32 temp, uint8 length)
 {
  uint8 i;

  for(i = 0; i < length; i++)
   DISPBUFF[i] = 0;
  for(i = length; i > 0; i--)
   {
    DISPBUFF[i-1] = (uint8) (temp % 10);
    temp = temp / 10;
   }
 }

/*
uint8 hex2bcd(uint8 cc)		
{
	uint8 c1,c2;

	c1 = cc / 10;
	c2 = cc % 10;
	c1 <<= 4;
	c1 |= c2;
	return c1;
}


uint8 bcd2hex(uint8 cc)		
{
	uint8 c1,c2;

	c1 = cc & 0x0f;
	c2 = cc >> 4;
	c2 = c2 * 10 + c1;
	return c2;
} */